<?php

namespace application\Comm;

class Cookie {

    public static function get($name) {
        return isset($_COOKIE[$name]) ? $_COOKIE[$name] : null;
    }

    public static function set($name, $val, $time = 3600) {
        return setcookie($name, $val, time() + $time);
    }

}
